Integrand size = 31, antiderivative size = 143 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=-\frac {2 (A b+a B) \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 (3 a A+b B) \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 (A b+a B) \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {2 b B \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d} \]
2/3*b*B*sec(d*x+c)^(3/2)*sin(d*x+c)/d+2*(A*b+B*a)*sin(d*x+c)*sec(d*x+c)^(1 /2)/d-2*(A*b+B*a)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*Elliptic E(sin(1/2*d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d+2/3*(3*A *a+B*b)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2* d*x+1/2*c),2^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d
Time = 1.59 (sec) , antiderivative size = 104, normalized size of antiderivative = 0.73 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (-3 (A b+a B) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+(3 a A+b B) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\frac {(b B+3 (A b+a B) \cos (c+d x)) \sin (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)}\right )}{3 d} \]
(2*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*(-3*(A*b + a*B)*EllipticE[(c + d* x)/2, 2] + (3*a*A + b*B)*EllipticF[(c + d*x)/2, 2] + ((b*B + 3*(A*b + a*B) *Cos[c + d*x])*Sin[c + d*x])/Cos[c + d*x]^(3/2)))/(3*d)
Time = 0.73 (sec) , antiderivative size = 142, normalized size of antiderivative = 0.99, number of steps used = 12, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.387, Rules used = {3042, 4485, 27, 3042, 4274, 3042, 4255, 3042, 4258, 3042, 3119, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )} \left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right ) \left (A+B \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx\) |
\(\Big \downarrow \) 4485 |
\(\displaystyle \frac {2}{3} \int \frac {1}{2} \sqrt {\sec (c+d x)} (3 a A+b B+3 (A b+a B) \sec (c+d x))dx+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{3} \int \sqrt {\sec (c+d x)} (3 a A+b B+3 (A b+a B) \sec (c+d x))dx+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )} \left (3 a A+b B+3 (A b+a B) \csc \left (c+d x+\frac {\pi }{2}\right )\right )dx+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 4274 |
\(\displaystyle \frac {1}{3} \left (3 (a B+A b) \int \sec ^{\frac {3}{2}}(c+d x)dx+(3 a A+b B) \int \sqrt {\sec (c+d x)}dx\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}dx+3 (a B+A b) \int \csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}dx\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 4255 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}dx+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\int \frac {1}{\sqrt {\sec (c+d x)}}dx\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}dx+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\int \frac {1}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\cos (c+d x)}dx\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \frac {1}{3} \left ((3 a A+b B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \frac {1}{3} \left (\frac {2 (3 a A+b B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d}+3 (a B+A b) \left (\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d}-\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}\right )\right )+\frac {2 b B \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{3 d}\) |
(2*b*B*Sec[c + d*x]^(3/2)*Sin[c + d*x])/(3*d) + ((2*(3*a*A + b*B)*Sqrt[Cos [c + d*x]]*EllipticF[(c + d*x)/2, 2]*Sqrt[Sec[c + d*x]])/d + 3*(A*b + a*B) *((-2*Sqrt[Cos[c + d*x]]*EllipticE[(c + d*x)/2, 2]*Sqrt[Sec[c + d*x]])/d + (2*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/d))/3
3.4.95.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d* x]*((b*Csc[c + d*x])^(n - 1)/(d*(n - 1))), x] + Simp[b^2*((n - 2)/(n - 1)) Int[(b*Csc[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && IntegerQ[2*n]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)), x_Symbol] :> Simp[a Int[(d*Csc[e + f*x])^n, x], x] + Simp[b/d In t[(d*Csc[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, n}, x]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))*(csc[(e_.) + (f_.)*(x_)]*(B_.) + (A_)), x_Symbol] :> Simp[(-b)*B*Cot[ e + f*x]*((d*Csc[e + f*x])^n/(f*(n + 1))), x] + Simp[1/(n + 1) Int[(d*Csc [e + f*x])^n*Simp[A*a*(n + 1) + B*b*n + (A*b + B*a)*(n + 1)*Csc[e + f*x], x ], x], x] /; FreeQ[{a, b, d, e, f, A, B}, x] && NeQ[A*b - a*B, 0] && !LeQ[ n, -1]
Leaf count of result is larger than twice the leaf count of optimal. \(400\) vs. \(2(179)=358\).
Time = 24.89 (sec) , antiderivative size = 401, normalized size of antiderivative = 2.80
method | result | size |
default | \(-\frac {\sqrt {-\left (-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (\frac {2 a A \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{\sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}+2 B b \left (-\frac {\cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{6 \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-\frac {1}{2}\right )^{2}}+\frac {\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{3 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}\right )+\frac {2 \left (A b +B a \right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \left (2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )}\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(401\) |
parts | \(-\frac {2 \left (A b +B a \right ) \left (-2 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{\sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}-\frac {2 a A \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{\sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}-\frac {2 B b \left (-2 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right ) \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}}{3 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{\frac {3}{2}} \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) d}\) | \(538\) |
-(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*a*A*(sin(1/2 *d*x+1/2*c)^2)^(1/2)*(-2*cos(1/2*d*x+1/2*c)^2+1)^(1/2)/(-2*sin(1/2*d*x+1/2 *c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))+2* B*b*(-1/6*cos(1/2*d*x+1/2*c)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2 )^(1/2)/(cos(1/2*d*x+1/2*c)^2-1/2)^2+1/3*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(-2* cos(1/2*d*x+1/2*c)^2+1)^(1/2)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^ 2)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2)))+2*(A*b+B*a)/sin(1/2*d*x+1/ 2*c)^2/(2*sin(1/2*d*x+1/2*c)^2-1)*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2 *c)^2)^(1/2)*(2*cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^2-(sin(1/2*d*x+1/2*c )^2)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1 )^(1/2)))/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 205, normalized size of antiderivative = 1.43 \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\frac {\sqrt {2} {\left (-3 i \, A a - i \, B b\right )} \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + \sqrt {2} {\left (3 i \, A a + i \, B b\right )} \cos \left (d x + c\right ) {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 \, \sqrt {2} {\left (i \, B a + i \, A b\right )} \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 \, \sqrt {2} {\left (-i \, B a - i \, A b\right )} \cos \left (d x + c\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (B b + 3 \, {\left (B a + A b\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{3 \, d \cos \left (d x + c\right )} \]
1/3*(sqrt(2)*(-3*I*A*a - I*B*b)*cos(d*x + c)*weierstrassPInverse(-4, 0, co s(d*x + c) + I*sin(d*x + c)) + sqrt(2)*(3*I*A*a + I*B*b)*cos(d*x + c)*weie rstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) - 3*sqrt(2)*(I*B*a + I*A*b)*cos(d*x + c)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos (d*x + c) + I*sin(d*x + c))) - 3*sqrt(2)*(-I*B*a - I*A*b)*cos(d*x + c)*wei erstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))) + 2*(B*b + 3*(B*a + A*b)*cos(d*x + c))*sin(d*x + c)/sqrt(cos(d*x + c) ))/(d*cos(d*x + c))
\[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\int \left (A + B \sec {\left (c + d x \right )}\right ) \left (a + b \sec {\left (c + d x \right )}\right ) \sqrt {\sec {\left (c + d x \right )}}\, dx \]
\[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\sec \left (d x + c\right )} \,d x } \]
\[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\int { {\left (B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )} \sqrt {\sec \left (d x + c\right )} \,d x } \]
Timed out. \[ \int \sqrt {\sec (c+d x)} (a+b \sec (c+d x)) (A+B \sec (c+d x)) \, dx=\int \left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}} \,d x \]